package org.example.controller;


import org.example.serveice.RedirectUrisService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/customers")
public class TestController {
    private final RedirectUrisService redirectUrisService;

    public TestController(RedirectUrisService redirectUrisService) {
        this.redirectUrisService = redirectUrisService;
    }

    @RequestMapping(value = "/1", method = RequestMethod.GET)
    public String test() {
        redirectUrisService.getAll();
        return "ok";
    }
}
